package cn.itsource.pethome.pay.domain;

import cn.itsource.pethome.basic.domain.BaseMain;
import cn.itsource.pethome.org.domain.Shop;
import cn.itsource.pethome.user.domain.User;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付订单
 */
@Data
public class PayBill extends BaseMain {
    /**摘要*/
    private String digest;
    /**金额*/
    private BigDecimal money;
    /**支付单号*/
    private String unionPaySn;
    /**订单编号*/
    private String orderSn;
    /**状态  0 待支付 1 支付完成  -1 取消*/
    private Integer state;
    /**最后支付时间*/
    private Date lastPayTime;
    /**0 余额 1 支付宝 2 微信 3 银联*/
    private Integer payChannel;
    /**业务类型*/
    private String businessType;
    /**业务键*/
    private Long businessKey;
    /**修改时间  支付宝返回的状态的时候*/
    private Date updateTime;
    /**创造时间*/
    private Date createTime = new Date();
    /**用户*/
    private User user;
    /**店铺*/
    private Shop shop;

}
